package com.cbh.feign.controller.push;



import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cbh.api.model.ApiResult;

public interface WebSocketControllerBase {

	
	/**
	 * 发送消息
	 * 
	 * @param user_ip
	 *            用户ip
	 * @param msg
	 *            消息内容
	 * @param accountToken
	 *            用户登录的token
	 * @return
	 */
	@RequestMapping(value = "/sign/v3/webSocket", method = RequestMethod.POST, produces = "application/json")
	public ApiResult<String> send(
			@RequestParam(value = "msg", required = true) String msg,
			@RequestParam(value = "accountToken", required = true) String accountToken);
	
	
	/**
	 * 发送消息
	 * 
	 * @param user_ip
	 *            用户ip
	 * @param msg
	 *            消息内容
	 * @param accountToken
	 *            用户登录的token
	 * @return
	 */
	@RequestMapping(value = "/sign/v3/webSocket/mechanismId", method = RequestMethod.POST, produces = "application/json")
	public ApiResult<String> sendMechanismId(
			@RequestParam(value = "msg", required = true) String msg,
			@RequestParam(value = "mechanismId", required = true) String mechanismId,
			@RequestParam(value = "accountToken", required = true) String accountToken) ;
	
}
